开始时间: 2019-09-27 11:33:19
耗时: 0:04:50.265000
状态: Pass:8 Failure:3 Error:10 通过率:38.1%
用例测试情况
| 测试组/测试用例 | 总数 | 通过 | 失败 | 错误 | 视图 | 错误截图 |
|---|---|---|---|---|---|---|
| test_12_tb_checkdata_ga.CheckDataTest | 1 | 0 | 0 | 1 | 详情 | |
test_01_check_xtzt_ajid |
错误
et1.1.1: INFO:read-db-config:E:\myclone/config/config.ini
INFO:savadata:['嫌疑人姓名', '成祖裘']
INFO:savadata:['案件名称', '公诉同步信息测试案件88511']
INFO:savadata:['平台案件编号', '369B8DEE36904E5BE1C1A534A7DD9E15']
INFO:savadata:['平台案件关联编号', 'de6d12e2e4f3417a87c678059ac37479']
INFO:savadata:['接收单位编号', '23205001303']
INFO:savadata:['发送单位编号', '2320584']
INFO:database:链接数据库172.23.23.222
INFO:database:未查询到数据
Traceback (most recent call last):
File "E:\myclone\test_cases\test_12_tb_checkdata_ga.py", line 22, in test_01_check_xtzt_ajid
xtzt = db.getdata(sql, 0)[1]
TypeError: 'NoneType' object is not subscriptable
|
无截图 | ||||
| test_13_fileprocess_104.FileProcess | 4 | 4 | 0 | 0 | 详情 | |
test_01_replace_xml |
通过
pt1.2.1: INFO:repleace-file:找到record.txt文件中记录的节点名称
INFO:repleace-file:找到record.txt文件中需要替换的节点内容
INFO:repleace-file:找到record.txt文件中记录的节点名称
INFO:repleace-file:需要替换的节点为['嫌疑人姓名', '案件名称', '平台案件编号', '平台案件关联编号', '接收单位编号', '发送单位编号']
INFO:repleace-file:找到record.txt文件中需要替换的节点内容
INFO:repleace-file:需要替换成['成祖裘', '公诉同步信息测试案件88511', '369B8DEE36904E5BE1C1A534A7DD9E15', 'de6d12e2e4f3417a87c678059ac37479', '23205001303', '2320584']
INFO:repleace-file:找到ajxx.xml的路径
INFO:read-config:E:\myclone/config/config.ini
INFO:repleace-file:开始替换内容
INFO:repleace-file:文件内容替换结束
|
无截图 | ||||
test_02_file_zip |
通过
pt1.2.2: INFO:read-config:E:\myclone/config/config.ini
INFO:zipallfile:F:\file\104.zip
INFO:zipallfile:文件压缩成功
|
无截图 | ||||
test_03_encryption_zip |
通过
pt1.2.3: INFO:read-config:E:\myclone/config/config.ini
INFO:encryption:F:\file\104.zip
INFO:encryption:压缩包存在,开始加密
D:\Anaconda3\lib\site-packages\jpype\_core.py:210: UserWarning:
-------------------------------------------------------------------------------
Deprecated: convertStrings was not specified when starting the JVM. The default
behavior in JPype will be False starting in JPype 0.8. The recommended setting
for new code is convertStrings=False. The legacy value of True was assumed for
this session. If you are a user of an application that reported this warning,
please file a ticket with the developer.
-------------------------------------------------------------------------------
""")
INFO:encryption:压缩包名称104.zip
INFO:encryption:压缩包路径F:\file
INFO:encryption:加密成功
INFO:encryption:加密后文件存放路径:F:\file\./after_jiami
|
无截图 | ||||
test_04_put_on_server |
通过
pt1.2.4: INFO:read-config:E:\myclone/config/config.ini
INFO:read-config:E:\myclone/config/config.ini
INFO:putonserver:本地文件路径F:\file\after_jiami\104.zip
INFO:putonserver:ftp服务器路径/home/ftp/jcy/104.zip
D:\Anaconda3\lib\site-packages\paramiko\kex_ecdh_nist.py:39: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
m.add_string(self.Q_C.public_numbers().encode_point())
D:\Anaconda3\lib\site-packages\paramiko\kex_ecdh_nist.py:96: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
self.curve, Q_S_bytes
D:\Anaconda3\lib\site-packages\paramiko\kex_ecdh_nist.py:111: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
hm.add_string(self.Q_C.public_numbers().encode_point())
D:\Anaconda3\lib\site-packages\paramiko\ecdsakey.py:164: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
self.ecdsa_curve.curve_class(), pointinfo
INFO:putonserver:连接服务器172.23.23.220成功,开始上传压缩包
INFO:putonserver:上传到服务器成功
|
无截图 | ||||
| test_14_tb_interf_104.InterfaceTest | 3 | 1 | 0 | 2 | 详情 | |
test_01_call_zf_interface |
通过
pt1.3.1: INFO:callinterface:ftp文件地址:/jcy/104.zip
INFO:callinterface:流程:104
INFO:callinterface:接口地址:http://172.23.23.220:8092/ebcp/api/sendMessage?systemid=zfpt×tamp=20180925&authcode=612a61ac1a43a06f01201b33154eef23
INFO:callinterface:开始调用接口,获取接口参数
INFO:callinterface:平台案件编号为369B8DEE36904E5BE1C1A534A7DD9E15
INFO:callinterface:平台案件关联编号为de6d12e2e4f3417a87c678059ac37479
INFO:callinterface:接收单位编号为23205001303
INFO:callinterface:发送单位编号为2320584
INFO:callinterface:{"taskId": "0dffa3f0e0d811e9a2ec005056c00008", "ptajbh": "369B8DEE36904E5BE1C1A534A7DD9E15", "ptajglbh": "de6d12e2e4f3417a87c678059ac37479", "fsdw": "23205001303", "jsdw": "2320584", "qqsj": "2018-10-04 17:30:00", "xtbh": 104, "md5": "86890ddb5eb501f66a3f7c7d3fa6caa5", "path": "/jcy/104.zip"}
|
无截图 | ||||
test_02_assert_result_ga |
错误
et1.3.2: INFO:read-db-config:E:\myclone/config/config.ini
INFO:savadata:['嫌疑人姓名', '成祖裘']
INFO:savadata:['案件名称', '公诉同步信息测试案件88511']
INFO:savadata:['平台案件编号', '369B8DEE36904E5BE1C1A534A7DD9E15']
INFO:savadata:['平台案件关联编号', 'de6d12e2e4f3417a87c678059ac37479']
INFO:savadata:['接收单位编号', '23205001303']
INFO:savadata:['发送单位编号', '2320584']
INFO:database:链接数据库172.23.23.222
INFO:database:未查询到数据
Traceback (most recent call last):
File "E:\myclone\test_cases\test_14_tb_interf_104.py", line 35, in test_02_assert_result_ga
xtzt = db.getdata(sql, 0)[1]
TypeError: 'NoneType' object is not subscriptable
|
无截图 | ||||
test_03_assert_result_zf |
错误
et1.3.3: INFO:read-db-config:E:\myclone/config/config.ini
INFO:savadata:['嫌疑人姓名', '成祖裘']
INFO:savadata:['案件名称', '公诉同步信息测试案件88511']
INFO:savadata:['平台案件编号', '369B8DEE36904E5BE1C1A534A7DD9E15']
INFO:savadata:['平台案件关联编号', 'de6d12e2e4f3417a87c678059ac37479']
INFO:savadata:['接收单位编号', '23205001303']
INFO:savadata:['发送单位编号', '2320584']
INFO:database:链接数据库172.23.23.220
INFO:database:未查询到数据
Traceback (most recent call last):
File "E:\myclone\test_cases\test_14_tb_interf_104.py", line 46, in test_03_assert_result_zf
xtzt = db.getdata(sql, 0)[1]
TypeError: 'NoneType' object is not subscriptable
|
无截图 | ||||
| test_15_check_result_zf.ResultCheck | 3 | 2 | 0 | 1 | 详情 | |
test_01_login_ga |
通过
pt1.4.1: INFO:readconfig:操作第2行元素,当前测试对象元素路径:username1
INFO:seleniumdriver:找到该元素
INFO:seleniumdriver:数据写入成功
INFO:readconfig:操作第3行元素,当前测试对象元素路径:password1
INFO:seleniumdriver:找到该元素
INFO:seleniumdriver:数据写入成功
INFO:readconfig:操作第4行元素,当前测试对象元素路径:submit_btn
INFO:seleniumdriver:找到该元素
INFO:seleniumdriver:元素点击成功
INFO:element-exist:找到该元素
|
无截图 | ||||
test_02_enter_tb_ajlist |
通过
pt1.4.2: INFO:seleniumdriver:当前页面的ifram个数为1
INFO:seleniumdriver:当前页面iframe有[<selenium.webdriver.remote.webelement.WebElement (session="9ac620868a5e0aef466a4eed12739334", element="0.3908452465762404-2")>]
INFO:readconfig:操作第5行元素,当前测试对象元素路径:/html/body/div/div/div[2]/div[2]/span[1]
INFO:seleniumdriver:找到该元素
INFO:seleniumdriver:元素点击成功
INFO:seleniumdriver:当前页面标题为:提捕案件列表
|
无截图 | ||||
test_03_find_tb_ajmc |
错误
et1.4.3: INFO:savadata:['嫌疑人姓名', '成祖裘']
INFO:savadata:['案件名称', '公诉同步信息测试案件88511']
INFO:savadata:['平台案件编号', '369B8DEE36904E5BE1C1A534A7DD9E15']
INFO:savadata:['平台案件关联编号', 'de6d12e2e4f3417a87c678059ac37479']
INFO:savadata:['接收单位编号', '23205001303']
INFO:savadata:['发送单位编号', '2320584']
INFO:readconfig:操作第13行元素,当前测试对象元素路径://*[@id="jqInput0a4c2"]
INFO:seleniumdriver:找到该元素
INFO:seleniumdriver:数据写入成功
INFO:readconfig:操作第14行元素,当前测试对象元素路径:search
INFO:seleniumdriver:找到该元素
INFO:seleniumdriver:元素点击成功
Traceback (most recent call last):
File "E:\myclone\test_cases\test_15_check_result_zf.py", line 44, in test_03_find_tb_ajmc
xyrxminlist = po.is_table_data_exist('caseGrid-table', 4) # 获取当前列表中该列的值
File "E:\myclone\common\elementexist.py", line 41, in is_table_data_exist
data = cell[lownumber].text
IndexError: list index out of range
|
显示截图 | ||||
| test_11_tb_qlc.TbTest | 10 | 1 | 3 | 6 | 详情 | |
test_01_login |
失败
ft1.5.1: Traceback (most recent call last):
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 45, in test_01_login
self.assertTrue(result) # 断言登陆结果
AssertionError: False is not true
|
显示截图 | ||||
test_02_enter_tb_ajlist |
错误
et1.5.2: Traceback (most recent call last):
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 50, in test_02_enter_tb_ajlist
tb.switch_iframe(0)
File "E:\myclone\base\selenium_driver.py", line 129, in switch_iframe
framnum = frams[number]
IndexError: list index out of range
|
显示截图 | ||||
test_03_tb_addtbaj |
错误
et1.5.3: INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
ERROR:seleniumdriver:元素点击失败,异常信息:'NoneType' object has no attribute 'click'
File "E:/myclone/test_cases/runner.py", line 42, in <module>
runner.run(suite)
File "D:\Anaconda3\lib\HTMLTestRunner_cn.py", line 973, in run
test(result)
File "D:\Anaconda3\lib\unittest\suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "D:\Anaconda3\lib\unittest\suite.py", line 122, in run
test(result)
File "D:\Anaconda3\lib\unittest\suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "D:\Anaconda3\lib\unittest\suite.py", line 122, in run
test(result)
File "D:\Anaconda3\lib\unittest\suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "D:\Anaconda3\lib\unittest\suite.py", line 122, in run
test(result)
File "D:\Anaconda3\lib\unittest\case.py", line 663, in __call__
return self.run(*args, **kwds)
File "D:\Anaconda3\lib\unittest\case.py", line 615, in run
testMethod()
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 58, in test_03_tb_addtbaj
choosepeople.add_tb_aj() # 点击添加案件按钮
File "E:\myclone\zfxtyw\addaj.py", line 24, in add_tb_aj
self.click(tb.addbutton(), 'class') # 点击添加案件按钮
File "E:\myclone\base\selenium_driver.py", line 63, in click
print_stack()
Traceback (most recent call last):
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 59, in test_03_tb_addtbaj
iframe2 = self.driver.find_elements_by_tag_name("iframe")[0]
IndexError: list index out of range
|
显示截图 | ||||
test_04_fill_in_value |
通过
pt1.5.4: INFO:readconfig:操作第58行元素,当前测试对象元素路径:jqNumeric5d68d
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"id","selector":"jqNumeric5d68d"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:数据写入失败,抛出异常: 'NoneType' object has no attribute 'send_keys'
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:readconfig:操作第59行元素,当前测试对象元素路径:jqInput98ad2
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"id","selector":"jqInput98ad2"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:数据写入失败,抛出异常: 'NoneType' object has no attribute 'send_keys'
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:tb-qlc:页面字段内容填写结束
|
无截图 | ||||
test_05_jzxt_uploadfile |
错误
et1.5.5: INFO:readconfig:操作第47行元素,当前测试对象元素路径://*[@id="viewWrit_tb"]
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="viewWrit_tb"]"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
ERROR:seleniumdriver:元素点击失败,异常信息:'NoneType' object has no attribute 'click'
File "E:/myclone/test_cases/runner.py", line 42, in <module>
runner.run(suite)
File "D:\Anaconda3\lib\HTMLTestRunner_cn.py", line 973, in run
test(result)
File "D:\Anaconda3\lib\unittest\suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "D:\Anaconda3\lib\unittest\suite.py", line 122, in run
test(result)
File "D:\Anaconda3\lib\unittest\suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "D:\Anaconda3\lib\unittest\suite.py", line 122, in run
test(result)
File "D:\Anaconda3\lib\unittest\suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "D:\Anaconda3\lib\unittest\suite.py", line 122, in run
test(result)
File "D:\Anaconda3\lib\unittest\case.py", line 663, in __call__
return self.run(*args, **kwds)
File "D:\Anaconda3\lib\unittest\case.py", line 615, in run
testMethod()
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 86, in test_05_jzxt_uploadfile
zjxt.enterjzxt_tb() # 进入文件管理页面
File "E:\myclone\zfxtyw\jzxt_uploadfile.py", line 28, in enterjzxt_tb
self.click(wjgl.wjglbutton(), 'xpath')
File "E:\myclone\base\selenium_driver.py", line 63, in click
print_stack()
Traceback (most recent call last):
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 87, in test_05_jzxt_uploadfile
self.switch_window(1) # 需要切换窗口
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 37, in switch_window
self.driver.switch_to.window(all_windows[number])
IndexError: list index out of range
|
显示截图 | ||||
test_05_tb_chooseqzcs |
错误
et1.5.6: INFO:ChooseQzcs:开始执行js
INFO:readconfig:操作第49行元素,当前测试对象元素路径:/html/body/div[1]/div[1]/div/div/div/div[2]/div/div[4]/div/div[2]/div/div[1]/table/tbody/tr/td[5]
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/div[1]/div/div/div/div[2]/div/div[4]/div/div[2]/div/div[1]/table/tbody/tr/td[5]"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:js执行失败抛出异常Message: unknown error: Cannot read property 'scrollIntoView' of null
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:readconfig:操作第49行元素,当前测试对象元素路径:/html/body/div[1]/div[1]/div/div/div/div[2]/div/div[4]/div/div[2]/div/div[1]/table/tbody/tr/td[5]
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/div[1]/div/div/div/div[2]/div/div[4]/div/div[2]/div/div[1]/table/tbody/tr/td[5]"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:元素双击成功
INFO:readconfig:操作第50行元素,当前测试对象元素路径:[class='jqColumnEditor jqColumnEditor-default']
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"css selector","selector":"[class='jqColumnEditor jqColumnEditor-default']"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:元素双击成功
INFO:readconfig:操作第51行元素,当前测试对象元素路径://*[@id="jqSelectListcfe6b"]
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="jqSelectListcfe6b"]"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:元素双击成功
INFO:readconfig:操作第52行元素,当前测试对象元素路径:/html/body/div[10]/div/div[1]
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[10]/div/div[1]"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:元素双击成功
INFO:readconfig:操作第53行元素,当前测试对象元素路径:/html/body/div[9]/div[1]/div[3]/button[1]
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[9]/div[1]/div[3]/button[1]"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:元素双击成功
INFO:readconfig:操作第54行元素,当前测试对象元素路径:/html/body/div[1]/div[1]/div/div/div/div[3]/div[2]/div/button
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/div[1]/div/div/div/div[3]/div[2]/div/button"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:元素双击成功
Traceback (most recent call last):
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 80, in test_05_tb_chooseqzcs
result = po.is_table_data_exist('suspectGrid-table', 4) # 获取当前列表中该列的值
File "E:\myclone\common\elementexist.py", line 38, in is_table_data_exist
tablelist = self.driver.find_element_by_id(tablid)
File "D:\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 360, in find_element_by_id
return self.find_element(by=By.ID, value=id_)
File "D:\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element
'value': value})['value']
File "D:\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "D:\Anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"id","selector":"suspectGrid-table"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
|
显示截图 | ||||
test_06_get_ajid |
错误
et1.5.7: Traceback (most recent call last):
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 102, in test_06_get_ajid
ajid = GetAjidFromUrl(self.driver).getajidfromurl(1)
File "E:\myclone\zfxtyw\getajid.py", line 19, in getajidfromurl
ajid = re.findall(pattern, url, flags=0)[number] # 返回结果是个列表,ajid是列表中的第二个index
IndexError: list index out of range
|
显示截图 | ||||
test_07_set_qzzt |
错误
et1.5.8: INFO:savadata:['嫌疑人姓名', '成祖裘']
INFO:savadata:['案件名称', '公诉同步信息测试案件88511']
INFO:savadata:['平台案件编号', '369B8DEE36904E5BE1C1A534A7DD9E15']
INFO:savadata:['平台案件关联编号', 'de6d12e2e4f3417a87c678059ac37479']
INFO:savadata:['接收单位编号', '23205001303']
INFO:savadata:['发送单位编号', '2320584']
INFO:savadata:未查询到数据
INFO:read-db-config:E:\myclone/config/config.ini
INFO:database:链接数据库172.23.23.222
INFO:database:update数据的sql为update db_jz.t_jzgl_wj set n_yqz =1 WHERE c_ywid='None' and c_store_path is not null
INFO:database:commit成功
INFO:database:链接数据库172.23.23.222
INFO:database:未查询到数据
Traceback (most recent call last):
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 118, in test_07_set_qzzt
result = db.getdata(sele_sql, 0)[1] # 判断是否查询到该ajid的签章状态
TypeError: 'NoneType' object is not subscriptable
|
显示截图 | ||||
test_08_tb_gotibu |
失败
ft1.5.9: INFO:readconfig:操作第55行元素,当前测试对象元素路径:/html/body/div[1]/div[1]/div/div/div/div[3]/div[1]/div/div/div/button
ERROR:seleniumdriver:元素未找到,抛出异常Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/div[1]/div/div/div/div[3]/div[1]/div/div/div/button"}
(Session info: chrome=77.0.3865.90)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
INFO:seleniumdriver:截图成功,图片保存路径为:E:\myclone\errormg\
INFO:seleniumdriver:元素双击成功
INFO:tb-qlc:政法跨部门大数据办案平台
Traceback (most recent call last):
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 127, in test_08_tb_gotibu
assert "提捕案件列表" in self.driver.title # 如果提捕成功,页面跳转到提捕列表
AssertionError
|
显示截图 | ||||
test_09_tb_save_all_data |
失败
ft1.5.10: INFO:savadata:['嫌疑人姓名', '成祖裘']
INFO:savadata:['案件名称', '公诉同步信息测试案件88511']
INFO:savadata:['平台案件编号', '369B8DEE36904E5BE1C1A534A7DD9E15']
INFO:savadata:['平台案件关联编号', 'de6d12e2e4f3417a87c678059ac37479']
INFO:savadata:['接收单位编号', '23205001303']
INFO:savadata:['发送单位编号', '2320584']
INFO:savadata:未查询到数据
INFO:savadata:['嫌疑人姓名', '成祖裘']
INFO:savadata:['案件名称', '公诉同步信息测试案件88511']
INFO:savadata:['平台案件编号', '369B8DEE36904E5BE1C1A534A7DD9E15']
INFO:savadata:['平台案件关联编号', 'de6d12e2e4f3417a87c678059ac37479']
INFO:savadata:['接收单位编号', '23205001303']
INFO:savadata:['发送单位编号', '2320584']
Traceback (most recent call last):
File "E:\myclone\test_cases\test_11_tb_qlc.py", line 135, in test_09_tb_save_all_data
self.assertIsNotNone(ajid) # 断言是否读取到ajid
AssertionError: unexpectedly None
|
显示截图 | ||||
| 统计 | 21 | 8 | 3 | 10 | ||